package fr.neticar.webremoteclient.client;

import com.google.gwt.user.client.rpc.IsSerializable;

public class KeyboardEventBean implements IsSerializable {
	
	private EventType type;
	
	private int keyCode;
	
	private char keyChar;
	
	private boolean isAltModifier;
	
	private boolean isShiftModifier;
	
	private boolean isCtrlModifier;

	public KeyboardEventBean(int keyCode, char keyChar, boolean isCtrlModifier, boolean isAltModifier, boolean isShiftModifier, EventType type) {
		this.keyCode = keyCode;
		this.keyChar = keyChar;
		this.isCtrlModifier = isCtrlModifier;
		this.isAltModifier = isAltModifier;
		this.isShiftModifier = isShiftModifier;
		this.type = type;
	}

	public KeyboardEventBean() {
	}

	public boolean isAltModifier() {
		return isAltModifier;
	}

	public void setAltModifier(boolean isAltModifier) {
		this.isAltModifier = isAltModifier;
	}

	public boolean isCtrlModifier() {
		return isCtrlModifier;
	}

	public void setCtrlModifier(boolean isCtrlModifier) {
		this.isCtrlModifier = isCtrlModifier;
	}

	public boolean isShiftModifier() {
		return isShiftModifier;
	}

	public void setShiftModifier(boolean isShiftModifier) {
		this.isShiftModifier = isShiftModifier;
	}

	public char getKeyChar() {
		return keyChar;
	}

	public void setKeyChar(char keyChar) {
		this.keyChar = keyChar;
	}

	public int getKeyCode() {
		return keyCode;
	}

	public void setKeyCode(int keyCode) {
		this.keyCode = keyCode;
	}

	public EventType getType() {
		return type;
	}

	public void setType(EventType type) {
		this.type = type;
	}
	
	

}
